﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ExamDesign.aspx.cs" Inherits="ExamDesign" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        body
        {
            margin: 0 auto;
            text-align:center;
            font-size: 12px;
        }
        table
        {
            border-collapse: collapse;
        }
        #divContainer
        {
        	margin:0 auto;
        	text-align:left;
            width: 770px;
        }
        #divTitle1
        {
            height: 25px;
            line-height: 25px;
            vertical-align: middle;
            background: url('images/bg_Title.jpg') repeat-x bottom;
        }
        .divTitle
        {
            height: 30px;
            line-height: 30px;
            vertical-align: middle; /*background:url('images/bg_Title.jpg') repeat-x bottom;*/
        }
        .divTitle span
        {
            font-weight: bold;
        }
        table.tblEdit
        {
            font-size: 12px;
            line-height: 30px;
        }
        .style1
        {
            height: 25px;
        }
        /*GridView的样式*/        
        #gvExam,#gvExam td, #gvExam th, #gvTX, #gvTX td, #gvTX th
        {
            line-height: 19px;
            border: solid 1px black;
        }       
        #gvExam td table td, #gvTX td table td
        {
            border: none;
        }
        a
        {
            color: Red;
        }
        a:visited
        {
            color: Red;
        }
    </style>

    <script src="Script/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script type="text/javascript" language="javascript">
        function fnHideNode() {
            $("#trCET").hide();
            $("#trTimeLimit").hide();
        }    
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="divContainer">
        <div class="divTitle">
            <span>现有试卷信息一览&gt;&gt;</span>
        </div>
        <div id="divBrowse">
            <asp:GridView ID="gvExam" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                Font-Size="12px" PageSize="8" Width="100%" DataKeyNames="examNum" OnSelectedIndexChanging="gvExam_SelectedIndexChanging"
                OnPageIndexChanging="gvExam_PageIndexChanging" OnRowDeleting="gvExam_RowDeleting">
                <RowStyle HorizontalAlign="Left" />
                <Columns>
                    <asp:BoundField DataField="kmName" HeaderText="科目名称">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle Width="80px" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="examNum" HeaderText="试卷编号">
                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                        <ItemStyle Width="55px" HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundField>
                    <asp:HyperLinkField DataNavigateUrlFields="examNum,examName" DataNavigateUrlFormatString="txDesign.aspx?examNum={0}&amp;examName={1}"
                        DataTextField="examName" HeaderText="试卷名称">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" Width="100px" />
                    </asp:HyperLinkField>
                    <asp:BoundField DataField="totalScore" HeaderText="总分">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle Width="35px" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="eligibleScore" HeaderText="合格">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle Width="35px" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="timeOver" HeaderText="限时">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" Width="35px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="examVer" HeaderText="试卷版本">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle Width="80px" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="examType" HeaderText="试卷类别">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle Width="80px" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="bFB" HeaderText="发布">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle Width="55px" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:CommandField ShowSelectButton="True" ShowDeleteButton="True">
                        <HeaderStyle HorizontalAlign="Left" />
                        <ItemStyle Width="55px" HorizontalAlign="Center" />
                    </asp:CommandField>
                </Columns>
                <FooterStyle HorizontalAlign="Left" />
                <SelectedRowStyle BackColor="#CCFFFF" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:GridView>
        </div>
        <div class="divTitle">
            <span>维护已有试卷信息或添加新的试卷信息&gt;&gt;</span>
        </div>
        <div id="divEdit">
            <table id="tblEdit" class="tblEdit" width="100%">
                <tr>
                    <td colspan="2" class="style1">
                        <b>****试卷设计****</b>
                    </td>
                    <td class="style1">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="width: 60px;">
                        科目名称：
                    </td>
                    <td style="width: 200px;">
                        <asp:DropDownList ID="dropKM" Width="180px" runat="server">
                        </asp:DropDownList>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        试卷版本：
                    </td>
                    <td>
                        <asp:ScriptManager ID="ScriptManager1" runat="server">
                        </asp:ScriptManager>
                        <asp:TextBox ID="txtVer" Width="170px" runat="server" Font-Size="12px"></asp:TextBox>
                        <cc1:CalendarExtender ID="txtVer_CalendarExtender" runat="server" Enabled="True"
                            Format="yyyy-MM-dd" TargetControlID="txtVer">
                        </cc1:CalendarExtender>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        试卷名称：
                    </td>
                    <td>
                        <asp:TextBox ID="txtName" Width="170px" runat="server" Font-Size="12px"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        试卷总分：
                    </td>
                    <td>
                        <asp:TextBox ID="txtTotalScore" Width="170px" runat="server" Font-Size="12px"></asp:TextBox>分
                    </td>
                    <td>
                        <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtTotalScore"
                            ErrorMessage="请输入0-150之间的数字！" MaximumValue="150" MinimumValue="0" Type="Integer">请输入0-150之间的数字！</asp:RangeValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        合格分数：
                    </td>
                    <td>
                        <asp:TextBox ID="txtEligibleScore" Width="170px" runat="server" Font-Size="12px"></asp:TextBox>分
                    </td>
                    <td>
                        <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="txtEligibleScore"
                            ErrorMessage="请输入0-150之间的数字！" MaximumValue="150" MinimumValue="0" Type="Integer">请输入0-150之间的数字！</asp:RangeValidator>
                    </td>
                </tr>
                <tr id="trCET">
                    <td>
                        试卷类别：
                    </td>
                    <td>
                        <asp:DropDownList ID="dropCETGrade" Width="180px" runat="server">
                            <asp:ListItem>普通考试卷</asp:ListItem>
                            <asp:ListItem>期末考试卷</asp:ListItem>
                            <asp:ListItem>补考考试卷</asp:ListItem>
                            <asp:ListItem>普通英语试卷</asp:ListItem>
                            <asp:ListItem>大学英语三A</asp:ListItem>
                            <asp:ListItem>大学英语三B</asp:ListItem>
                            <asp:ListItem>四级英语</asp:ListItem>
                            <asp:ListItem>六级英语</asp:ListItem>
                            <asp:ListItem>专业四级英语</asp:ListItem>
                            <asp:ListItem>专业六级英语</asp:ListItem>
                            <asp:ListItem>其他语言试卷</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        考试时限：
                    </td>
                    <td>
                        <asp:TextBox ID="txtTimeOver" Width="170px" runat="server" Font-Size="12px"></asp:TextBox>分钟
                    </td>
                    <td>
                        <asp:RangeValidator ID="RangeValidator3" runat="server" ControlToValidate="txtTimeOver"
                            ErrorMessage="请输入300以内的数字！" MaximumValue="300" MinimumValue="0" Type="Integer">请输入300以内的数字！</asp:RangeValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        发布试卷：
                    </td>
                    <td>
                        <asp:CheckBox ID="chkZF" runat="server" />
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="btnRefur" runat="server" Text="添加" OnClick="btnRefur_Click" />&nbsp;&nbsp;
                        <asp:Button ID="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click" />&nbsp;&nbsp;
                        <asp:Button ID="btnTXMana" runat="server" Text="题型管理" OnClick="btnTXMana_Click" />
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
